package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wfjytd
 * @create 2021-12-27 16:54
 */
//二级分类VO
@AllArgsConstructor
@NoArgsConstructor
@Data
public class Catelog2Vo {

    private String catelog1Id;//1级分类id
    private List<Catelog3Vo> catalog3List;//三级子分类
    private String id;
    private String name;

    /**
     * 三级分类vo
     *   "catalog3List":[
     *                 {
     *                     "catalog2Id":"68",
     *                     "id":"678",
     *                     "name":"婴儿推车"
     *                 },
     */
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class Catelog3Vo{
        private String catalog2Id;
        private String id;
        private String name;

    }


}
